package com.glx.learn_spring.learn_spring_09_di_collection.dao.impl;

import com.glx.learn_spring.learn_spring_09_di_collection.dao.IBookDao;

import java.util.*;

/**
 * @author haoli
 * @create 2022/11/30 19:09
 */
public class BookDaoImpl implements IBookDao {

    private int[] numberArray;
    private List<String> stringList;
    private Set<String> stringSet;
    private Map<String,String> stringStringMap;
    private Properties properties;

    @Override
    public void save() {
        System.out.println("bookDao save ...");
        System.out.println("遍历数组:" + Arrays.toString(numberArray));
        System.out.println("遍历list:" + stringList);
        System.out.println("遍历set:" + stringSet);
        System.out.println("遍历map:" + stringStringMap);
        System.out.println("遍历proterties:" + properties);
    }

    public void setNumberArray(int[] numberArray) {
        this.numberArray = numberArray;
    }

    public void setStringList(List<String> stringList) {
        this.stringList = stringList;
    }

    public void setStringSet(Set<String> stringSet) {
        this.stringSet = stringSet;
    }

    public void setStringStringMap(Map<String, String> stringStringMap) {
        this.stringStringMap = stringStringMap;
    }

    public void setProperties(Properties properties) {
        this.properties = properties;
    }
}
